package com.citicpub_cloud.restfull.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.citicpub_cloud.restfull.dao.core.TbAudioResInfo;

public class TbAudioResInfoMapper implements RowMapper<TbAudioResInfo> {  
	@Override
	public TbAudioResInfo mapRow(ResultSet rs, int index) throws SQLException {
		TbAudioResInfo obj = new TbAudioResInfo();
		obj.setAudioName(rs.getString("audio_name"));
		obj.setAudioImg(rs.getString("audio_img"));
		obj.setAudioUrl(rs.getString("audio_url"));
		obj.setAudioSize(rs.getLong("url_size"));
		return obj;
	}
}